conditionalstatement in widget flutter

51

Container(
  color: Colors.white,
  child: ('condition')
  ? Widget1(...)
  : Widget2(...)
)
condition? Text("True"): null,

Comments

Submit
0 Comments